.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "PUPPET\-CONFIG" "8" "December 2020" "Puppet, Inc." "Puppet manual"
.
.SH "NAME"
\fBpuppet\-config\fR \- Interact with Puppet\'s settings\.
.
.SH "SYNOPSIS"
puppet config \fIaction\fR [\-\-section SECTION_NAME]
.
.SH "DESCRIPTION"
This subcommand can inspect and modify settings from Puppet\'s \'puppet\.conf\' configuration file\. For documentation about individual settings, see https://puppet\.com/docs/puppet/latest/configuration\.html\.
.
.SH "OPTIONS"
Note that any setting that\'s valid in the configuration file is also a valid long argument, although it may or may not be relevant to the present action\. For example, \fBserver\fR and \fBrun_mode\fR are valid settings, so you can specify \fB\-\-server <servername>\fR, or \fB\-\-run_mode <runmode>\fR as an argument\.
.
.P
See the configuration file documentation at \fIhttps://puppet\.com/docs/puppet/latest/configuration\.html\fR for the full list of acceptable parameters\. A commented list of all configuration options can also be generated by running puppet with \fB\-\-genconfig\fR\.
.
.TP
\-\-render\-as FORMAT
The format in which to render output\. The most common formats are \fBjson\fR, \fBs\fR (string), \fByaml\fR, and \fBconsole\fR, but other options such as \fBdot\fR are sometimes available\.
.
.TP
\-\-verbose
Whether to log verbosely\.
.
.TP
\-\-debug
Whether to log debug information\.
.
.TP
\-\-section SECTION_NAME
The section of the puppet\.conf configuration file to interact with\.
.
.IP
The three most commonly used sections are \'main\', \'server\', and \'agent\'\. \'Main\' is the default, and is used by all Puppet applications\. Other sections can override \'main\' values for specific applications \-\-\- the \'server\' section affects Puppet Server, and the \'agent\' section affects puppet agent\.
.
.IP
Less commonly used is the \'user\' section, which affects puppet apply\. Any other section will be treated as the name of a legacy environment (a deprecated feature), and can only include the \'manifest\' and \'modulepath\' settings\.
.
.SH "ACTIONS"
.
.TP
\fBdelete\fR \- Delete a Puppet setting\.
\fBSYNOPSIS\fR
.
.IP
puppet config delete [\-\-section SECTION_NAME] \fIsetting\fR
.
.IP
\fBDESCRIPTION\fR
.
.IP
Deletes a setting from the specified section\. (The default is the section \'main\')\.
.
.IP
\fBNOTES\fR
.
.IP
By default, this action deletes the configuration setting from the \'main\' configuration domain\. Use the \'\-\-section\' flags to delete settings from other configuration domains\.
.
.TP
\fBprint\fR \- Examine Puppet\'s current settings\.
\fBSYNOPSIS\fR
.
.IP
puppet config print [\-\-section SECTION_NAME] all | \fIsetting\fR [\fIsetting\fR \.\.\.]
.
.IP
\fBDESCRIPTION\fR
.
.IP
Prints the value of a single setting or a list of settings\.
.
.IP
This action is a replacement interface to the information available with \fBpuppet <subcommand> \-\-configprint\fR\.
.
.IP
\fBNOTES\fR
.
.IP
By default, this action reads the general configuration in the \'main\' section\. Use the \'\-\-section\' and \'\-\-environment\' flags to examine other configuration domains\.
.
.TP
\fBset\fR \- Set Puppet\'s settings\.
\fBSYNOPSIS\fR
.
.IP
puppet config set [\-\-section SECTION_NAME] [setting_name] [setting_value]
.
.IP
\fBDESCRIPTION\fR
.
.IP
Updates values in the \fBpuppet\.conf\fR configuration file\.
.
.IP
\fBNOTES\fR
.
.IP
By default, this action manipulates the configuration in the \'main\' section\. Use the \'\-\-section\' flag to manipulate other configuration domains\.
.
.SH "EXAMPLES"
\fBdelete\fR
.
.P
Delete the setting \'setting_name\' from the \'main\' configuration domain:
.
.P
$ puppet config delete setting_name
.
.P
Delete the setting \'setting_name\' from the \'server\' configuration domain:
.
.P
$ puppet config delete setting_name \-\-section server
.
.P
\fBprint\fR
.
.P
Get puppet\'s runfile directory:
.
.P
$ puppet config print rundir
.
.P
Get a list of important directories from the server\'s config:
.
.P
$ puppet config print all \-\-section server | grep \-E "(path|dir)"
.
.P
\fBset\fR
.
.P
Set puppet\'s runfile directory:
.
.P
$ puppet config set rundir /var/run/puppetlabs
.
.P
Set the vardir for only the agent:
.
.P
$ puppet config set vardir /opt/puppetlabs/puppet/cache \-\-section agent
.
.SH "COPYRIGHT AND LICENSE"
Copyright 2011 by Puppet Inc\. Apache 2 license; see COPYING
